package com.sniper.service;

import com.sniper.configuration.DisableHystrixConfiguration;
import com.sniper.model.LineShop;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * configuration 可以局部配置hystrix
 *
 * @author suzhen
 * @create 2018/3/16
 */
@FeignClient(name = "service-dba", configuration = DisableHystrixConfiguration.class, fallback = LineShopServiceImpl.class)
public interface LineShopService {

    /**
     * @param id
     * @return
     */
    @RequestMapping(value = "/line-shop/get")
    LineShop get(@RequestParam(value = "id") String id);

    /**
     * @param id
     * @return
     */
    @RequestMapping(value = "/line-shop/list")
    List<LineShop> list(@RequestParam(value = "id") String id);
}
